Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 3, 2026

Summary

Add syntax highlighting to TypeScript type definitions generated by the infer command.

Changes

  • Add colors field to typegen::Config
  • Colorize keywords (dim), type names (blue), strings (green)
  • CLI passes Colors::ON when outputting to terminal

Example

Type definitions now display with colors when output to terminal, making them easier to read.

Test plan

  • cargo check passes
  • Clippy passes

@zharinov zharinov enabled auto-merge (squash) January 3, 2026 12:24
@zharinov zharinov force-pushed the feat/infer-colorization branch from 5d199f1 to 42cddba Compare January 3, 2026 12:26
@zharinov zharinov merged commit aedc258 into master Jan 3, 2026
4 checks passed
@zharinov zharinov deleted the feat/infer-colorization branch January 3, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants